<template>
	<!-- 企业认证 -->
	<div class="otherDetail">
		<div class="box clearfix">
			<div class="location">
				<span>{{$t('common.foot.help')}}</span>
				>
				{{name}}
			</div>
			<div class="content">
				<div class="con" v-html="con.content"></div>
			</div>
		</div>
	</div>
</template>
<script>
import {ajax} from '@/utils/js.js'
import {getDisclaimer,getUspap,getUerAuthorProtocal} from '../../services/api.js'
import { showToast } from '@/utils/js.js'
const log = console.log
export default{
  data(){
      return{
				type:'',
				name:'',
				con:{title:'',content:''}
      }
	},
	methods:{
		content(){
			let url
			let type = this.$route.query.type
			if(type == 0){
				url = getUspap
			}else if(type == 1){
				url = getDisclaimer
			}else if(type == 2){
				url = getUerAuthorProtocal
			}
			ajax(this,url,{},res=>{
				this.con.content = res.data
			},err=>{})
		},
	},
	mounted(){
		this.content()
		log(this.$route.query)
		this.type = this.$route.query.type
		this.name = this.$route.query.name
		
	},
	watch:{
    '$i18n.locale'(){
      this.content()
    },
	},
	
	
}
</script>
<style lang="scss">
 .otherDetail{
    .content{
      padding:40px 120px;
      background-color: #fff;
      .time{
        padding: 20px 0;
      }
      .con{line-height: 1.8;color: #666;}
    }
    
  }
</style>
